<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Information
 *
 * @ORM\Table(name="information", options={"comment":"消息表"})
 * @ORM\Entity()
 */
class Information
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    
    /**
     * @var int
     *
     * @ORM\Column(name="type", type="smallint", options={"comment"="分类  1至6 为系统保留字段  1 代表系统推送"})
     */
    private $type;

    /**
     * @var string
     *
     * @ORM\Column(name="content", type="string", length=255,  options={"comment"="内容"})
     */
    private $content;

    /**
     * @var string
     *
     * @ORM\Column(name="json_added", type="text", nullable=true,  options={"comment"="JSON 额外数组"})
     */
    private $json_added;

    /**
     * @var string
     *
     * @ORM\Column(name="object", type="string", length=45, nullable=true, options={"comment"="对象 （纯数字为保留字段不允许使用）"})
     */
    private $object;


    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

}
